home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-04 / gs24src.zip / GXFDIR.H < prev    next >
C/C++ Source or Header  |  1991-09-05  |  2KB  |  49 lines

  1. /* Copyright (C) 1989, 1990, 1991 Aladdin Enterprises.  All rights reserved.
  2.    Distributed by Free Software Foundation, Inc.
  3.  
  4. This file is part of Ghostscript.
  5.  
  6. Ghostscript is distributed in the hope that it will be useful, but
  7. WITHOUT ANY WARRANTY.  No author or distributor accepts responsibility
  8. to anyone for the consequences of using it or for whether it serves any
  9. particular purpose or works at all, unless he says so in writing.  Refer
  10. to the Ghostscript General Public License for full details.
  11.  
  12. Everyone is granted permission to copy, modify and redistribute
  13. Ghostscript, but only under the conditions described in the Ghostscript
  14. General Public License.  A copy of this license is supposed to have been
  15. given to you along with Ghostscript so you can know your rights and
  16. responsibilities.  It should be in a file named COPYING.  Among other
  17. things, the copyright notice and this notice must be preserved on all
  18. copies.  */
  19.  
  20. /* gxfdir.h */
  21. /* Font directory (font/character cache manager) definitions */
  22. /* Requires gsfont.h. */
  23.  
  24. /* A font directory (font/character cache manager). */
  25. struct gs_font_dir_s {
  26.     proc_alloc_t alloc;
  27.     proc_free_t free;
  28.     /* Font directory */
  29.     long next_id;            /* next unique ID */
  30.     /* Scaled font cache */
  31.     gs_font *scaled_fonts;        /* list of recently scaled fonts */
  32.     uint ssize, smax;
  33.     /* Character cache parameters and statistics */
  34.     uint bsize, bmax;        /* # of bytes for cached chars */
  35.     uint msize, mmax;        /* # of cached font/matrix pairs */
  36.     uint csize, cmax;        /* # of cached chars */
  37.     uint lower;            /* min size at which cached chars */
  38.                     /* should be stored compressed */
  39.     uint upper;            /* max size of a single cached char */
  40.     /* Character cache */
  41.     struct cached_char_s **chars;    /* chain heads */
  42.     uint chars_mask;        /* (a power of 2 -1) */
  43.     struct cached_fm_pair_s *mdata;
  44.     uint mnext;            /* rover for allocating font/matrix pairs */
  45.     byte *cdata;        /* struct cached_char_head_s * */
  46.     uint cdata_size;
  47.     uint cnext;        /* rover for allocating cached characters */
  48. };
  49.